const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/mock': {
        target: 'http://localhost:3000',
        changeOrigin: true,//允许跨域
        pathRewrite: {
          '^/mock': ''
        },
      }
    }
  }
});
